package com.chennan.pattern.chain.upgrade.impl;

import com.chennan.pattern.chain.low.AbstractPrepareFilter;
import com.chennan.pattern.chain.low.PreparationList;
import com.chennan.pattern.chain.upgrade.FilterChain;
import com.chennan.pattern.chain.upgrade.StudyPrepareFilter;

/**
 * @author chennan
 * @createTime 2022年02月24日 16:21:00
 */
public class WashFaceFilter implements StudyPrepareFilter {

    @Override
    public void doFilter(PreparationList preparationList, FilterChain filterChain) {
        if(preparationList.isWashFace()){
            System.out.println("洗脸。。。。。");
        }
        filterChain.doFilter(preparationList, filterChain);

    }
}
